package cn.tedu.egarticle1.mapper;

import cn.tedu.egarticle1.pojo.dto.UserArticleParam;
import cn.tedu.egarticle1.pojo.dto.UserLoginParam;
import cn.tedu.egarticle1.pojo.entity.Article;
import cn.tedu.egarticle1.pojo.vo.ArticleVO;
import cn.tedu.egarticle1.pojo.vo.UserVO;
import org.hibernate.validator.constraints.Range;

public interface UserMapper {
    UserVO selectUsernameAndPassword(UserLoginParam userLoginParam);

    int  insertArticle(Article article);

    ArticleVO selectByArticleId(@Range(min = 1,max=100,message ="文章id在1-100之间") Long id);
}
